home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmDest3
- BackColor = &H000080FF&
- Caption = "The DEST3 Program"
- ClientHeight = 4650
- ClientLeft = 1080
- ClientTop = 855
- ClientWidth = 4230
- Height = 5055
- Icon = DEST3.FRX:0000
- Left = 1020
- LinkTopic = "Form1"
- ScaleHeight = 4650
- ScaleWidth = 4230
- Top = 510
- Width = 4350
- Begin CommandButton cmdRequest
- Caption = "&Request"
- Height = 495
- Left = 1560
- TabIndex = 4
- Top = 4080
- Width = 2535
- End
- Begin TextBox txtFromSource
- Height = 1335
- Left = 120
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 1
- Top = 2640
- Width = 3975
- End
- Begin CommandButton cmdExit
- Caption = "E&xit"
- Height = 495
- Left = 240
- TabIndex = 0
- Top = 4080
- Width = 1215
- End
- Begin Line Line3
- BorderColor = &H00FFFF00&
- BorderWidth = 10
- X1 = 480
- X2 = 3600
- Y1 = 1680
- Y2 = 1680
- End
- Begin Line Line2
- BorderColor = &H00FFFF00&
- BorderWidth = 10
- X1 = 360
- X2 = 3840
- Y1 = 1440
- Y2 = 1440
- End
- Begin Label Label2
- Alignment = 2 'Center
- BackColor = &H00000000&
- BorderStyle = 1 'Fixed Single
- ForeColor = &H00FFFFFF&
- Height = 735
- Left = 240
- TabIndex = 3
- Top = 240
- Width = 3855
- End
- Begin Line Line1
- BorderColor = &H00FFFF00&
- BorderWidth = 10
- X1 = 240
- X2 = 3960
- Y1 = 1200
- Y2 = 1200
- End
- Begin Label Label1
- Alignment = 2 'Center
- BackColor = &H000080FF&
- Caption = "The following data came from SOURCE:"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 12
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 615
- Left = 120
- TabIndex = 2
- Top = 1920
- Width = 3735
- End
- Option Explicit
- Sub cmdExit_Click ()
- End
- End Sub
- Sub cmdRequest_Click ()
- ' Clear the notification label
- Label2.Caption = ""
- ' Disable the Request button
- cmdRequest.Enabled = False
- ' Request a new data
- txtFromSource.LinkRequest
- End Sub
- Sub Form_Load ()
- ' Set the topic
- txtFromSource.LinkTopic = "SOURCE|Dummy"
- ' Set the item
- txtFromSource.LinkItem = "txtToDest"
- ' Establish a manual DDE
- txtFromSource.LinkMode = 3
- End Sub
- Sub txtFromSource_LinkNotify ()
- Beep
- cmdRequest.Enabled = True
- Label2.Caption = "New data is waiting for you!"
- End Sub
-